<?php

namespace component\widget\admin\logininfo\controller;

use app\bll\UserLoginlog as BllUserLoginlog;
use core\component\WidgetBase;
use support\View;

class Index extends WidgetBase
{
    public function index(string $cnfparam = '')
    {
        $bllUserLoginlog = new BllUserLoginlog();
        $lastlogininfo = $bllUserLoginlog->lastLoginInfo(get_login_admin()['id']);

        View::assign('lastlogininfo', $lastlogininfo);
        return $this->view();
    }
}
